package com.CI.ViewAllBook.Model
{
	import com.adobe.cairngorm.model.ModelLocator;
	
	public class ModelLocator implements ModelLocator
	{	
		private static var modelLocator : com.CI.ViewAllBook.Model.ModelLocator;
		
		public function ModelLocator()
		{
			if (com.CI.ViewAllBook.Model.ModelLocator != null)
				throw new Error("Only one ModelLocator instance should be instantiated");	
		}
		
		public static function getInstance(): com.CI.ViewAllBook.Model.ModelLocator
		{
			if(modelLocator == null)
			{
				modelLocator = new com.CI.ViewAllBook.Model.ModelLocator();	
			}
			return modelLocator;
		} 
	}
}